#include<stdio.h>
typedef long long ll;

ll getk(ll n) {
  ll l=1, r=n;
  while(l<r) {
    ll mid = (l+r)/2;
    if(mid*(mid+1)/2 < n) {
      l = mid+1;
    }
    else {
      r = mid;
    }
  }
  return l;
}

int main() {
  ll n; scanf("%lld", &n);
  ll k = getk(n);
  ll i = n - k*(k-1)/2;
  if(k%2==0) printf("%lld/%lld\n", i, k+1-i);
  else printf("%lld/%lld\n", k+1-i, i);
}
